// 将时间戳转换为指定格式

export const getTime = (time) => {
  var date = new Date(time);
  var Y = date.getFullYear() + '-';
  var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
  var D = date.getDate() + ' ';
  var Time = Y + M + D;
  return Time
}